/**
 * Created by baidm in 2022/4/25 on 15:59
 */
import relativePath2Img from "./filterMethod/relativePath2Img.filter"

const filterPoolConst = (() => {
  return {
    filterPool: {},
    add(key, filter) {
      this.filterPool[key] = filter
    },
    get(key) {
      return this.filterPool[key]
    }
  }
})()

filterPoolConst.add("relativePath2Img", relativePath2Img)

export default function (key) {
  return filterPoolConst.get(key)
}